package com.yunhe.merchants.service;

import com.yunhe.common.exception.ArgumentErrorException;
import com.yunhe.common.exception.ModelNotFoundException;
import com.yunhe.common.exception.ObjectNotFoundException;
import com.yunhe.common.exception.UniqueConstraintsException;
import com.yunhe.merchants.domain.ProcessStatus;

/**
 * @Author: DongWenYu
 * @Date: 2021/5/7 21:04
 */
public interface IProcessStatusService {

    /**
     * 更新、提交流程
     * @param processStatus 
     * @param id 
     * @param userId
     * @return void 
     * @create 2021/5/11 17:38
     */
    void update(ProcessStatus processStatus , Long id , Long userId) throws ArgumentErrorException, UniqueConstraintsException, ObjectNotFoundException, ModelNotFoundException;

    /**
     * 流程点击下一步
     * @param id 
     * @param userId
     * @return void 
     * @create 2021/5/11 17:43
     */
    void next(Long id, Long userId) throws ArgumentErrorException;
}
